import React,{ Component } from "react"
import {withRouter} from "react-router-dom"
import "./index.css"

class Index extends Component{
	render(){
		return(
            <div className="header">
                <span onClick={()=>{this.props.history.goBack()}}></span>
                {this.props.title}
            </div>
		)
	}
}

export default withRouter(Index)